package net.rlair.sbdemo.aspect;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class YangHaikunAspectConfiguration {
    //定义切面
    @Bean(name = "yangHaikunAspect1")
    public YangHaikunAspect1 getYangHaikunAspect1() {
        return new YangHaikunAspect1();
    }

    //定义切面
    @Bean(name = "yangHaikunAspect2")
    public YangHaikunAspect2 getYangHaikunAspect2() {
        return new YangHaikunAspect2();
    }
}
